package com.hsc.www.amqp.config;

import com.hsc.www.amqp.util.RabbitMetaMessage;
import org.springframework.amqp.rabbit.connection.CorrelationData;

public class MyCorrelationData extends CorrelationData {

    private RabbitMetaMessage message;

    public MyCorrelationData(RabbitMetaMessage message) {
        super(message.getMessageId());
        this.message = message;
    }

    public RabbitMetaMessage getMessage() {
        return message;
    }

    public void setMessage(RabbitMetaMessage message) {
        this.message = message;
    }
}
